<template>
  <div >
    <!-- 基本信息 -->
    <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
      <div class="blue_item" />
      <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">审计联系人</span>
    </div>
    <el-table :data="fromdata.projectAuditContacts" border style="width: 100%">
      <el-table-column prop="auditOrg" label="审计单位" width="120"/>
      <el-table-column prop="auditContactsName" label="审计联系人姓名" width="120"/>
      <el-table-column prop="auditContactsPhone" label="审计人联系电话" width="120"/>
      <el-table-column prop="contactEmail" label="联系邮箱" width="160"/>
      <el-table-column prop="contactsAccount" label="审计联系人系统账号" width="160"/>
    </el-table>
    <div v-if="fromdata.isDirectEntryAudit=='否'">
      <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
        <div class="blue_item" />
        <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">审计要求</span>
      </div>
      <van-field readonly name="requiredCompletionTime" :value="fromdata.requiredCompletionTime" label="要求完成时间：" label-width="7em" />
      <van-field readonly autosize type="textarea" rows="1" name="auditSpecificRequirements" :value="fromdata.auditSpecificRequirements" label="审计具体要求：" label-width="7em" />
      <van-field readonly label-width="12em" label="审计说明附件：" />
      <div v-for="(fileitem) in fromdata.requireFiles" :key="fileitem.id" style="margin-left:20px">
        <div readonly class="font14 fileLink" style="color:#0F85CF">
          <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
        </div>
      </div>
    </div>
    <div v-if="fromdata.isDirectEntryAudit=='是'||(fromdata.auditTime!=null&&fromdata.auditTime!='')">
      <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
        <div class="blue_item" />
        <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">审计结果</span>
      </div>
      <van-field readonly name="auditSourceType" :value="fromdata.auditSourceType" label="审计/检查来源(内外分类)：" label-width="12em" />
      <van-field readonly name="auditSourceUnit" :value="fromdata.auditSourceUnit" label="审计/检查来源(具体检查单位名称)：" label-width="16em" />
      <van-field readonly name="auditNoticeNo" :value="fromdata.auditNoticeNo" label="检查通知文号：" label-width="7em" />
      <van-field readonly name="resultNoticeNo" :value="fromdata.resultNoticeNo" label="结果通报文号：" label-width="7em" />
      <van-field readonly name="riskAmount" :value="fromdata.riskAmount" label="风险金额(万元)：" label-width="8em" />
      <van-field readonly name="isDisciplinary" :value="fromdata.isDisciplinary" label="是否属于违纪问题：" label-width="9em" />
      <van-field readonly name="isIllegal" :value="fromdata.isIllegal" label="是否属于违法问题：" label-width="9em" />
      <van-field readonly name="involvedProjectCount" :value="fromdata.involvedProjectCount" label="该问题涉及的项目总数：" label-width="11em" />
      <van-field readonly name="involvedProjectCodes" :value="fromdata.involvedProjectCodes" label="涉及的项目编码：" label-width="8em" autosize type="textarea" rows="1"/>
      <van-field readonly required name="auditName" :value="fromdata.auditName" label="审计名称：" label-width="5em" autosize type="textarea" rows="1"/>
      <van-field readonly required name="auditTime" :value="fromdata.auditTime" label="审计时间：" label-width="5em" />
      <van-field readonly required name="auditFormNumber" :value="fromdata.auditFormNumber" label="审计单位编号：" label-width="7em" autosize type="textarea" rows="1"/>
      <van-field readonly required name="auditProjectName" :value="fromdata.auditProjectName" label="审计项目名称：" label-width="7em" autosize type="textarea" rows="1"/>
      <van-field readonly required name="investigationItems" :value="fromdata.investigationItems" label="调查事项：" label-width="5em" autosize type="textarea" rows="1"/>
      <van-field readonly required name="policyBasis" :value="fromdata.policyBasis" label="政策依据：" label-width="5em" autosize type="textarea" rows="1"/>
      <van-field readonly required autosize type="textarea" rows="1" name="factDescription" :value="fromdata.factDescription" label="事实描述：" label-width="5em" />
      <van-field readonly required autosize type="textarea" rows="1" name="auditIssueImpact" :value="fromdata.auditIssueImpact" label="审计问题影响：" label-width="7em" />
      <van-field readonly required name="auditEditTime" :value="fromdata.auditEditTime" label="审计编辑时间：" label-width="7em" />
      <van-field readonly required name="isTypicalCase" :value="fromdata.isTypicalCase" label="是否典型案例：" label-width="7em" />
      <van-field readonly required label-width="12em" label="审计单文件：" />
      <div v-for="(fileitem) in fromdata.auditFormFiles" :key="fileitem.id" style="margin-left:20px">
        <div readonly class="font14 fileLink" style="color:#0F85CF">
          <a target="_blank" @click="openFileUrlfun(fileitem.anonymousFilePath)">{{ fileitem.fileName }}</a>
        </div>
      </div>
    </div>
    <div v-if="fromdata.isRectification!=null&&fromdata.isRectification!=''">
      <div class="mt10" style=" display: flex;border-bottom: 1px solid #ebedf0;">
        <div class="blue_item" />
        <span class="font15" style="display: flex; line-height: 33px;margin-left:5px;  flex:1;">整改落实情况</span>
      </div>
      <van-field readonly required name="isRectification" :value="fromdata.isRectification=='1'?'是':'否'" label="是否完成整改：" label-width="7em" />
      <van-field readonly required autosize type="textarea" rows="1" name="rectificationMeasures" :value="fromdata.rectificationMeasures" label="整改举措及完成情况：" label-width="10em" />
      <van-field readonly required name="rectificationResponsibleName" :value="fromdata.rectificationResponsibleName" label="整改落实责任人姓名：" label-width="10em" />
      <van-field readonly required name="rectificationResponsiblePhone" :value="fromdata.rectificationResponsiblePhone" label="整改落实责任人电话：" label-width="10em" />
      <van-field readonly required name="administrativePunishmentCount" :value="fromdata.administrativePunishmentCount" label="管理处分人数：" label-width="7em" />
      <van-field readonly required name="disciplinaryPunishmentCount" :value="fromdata.disciplinaryPunishmentCount" label="纪律处分人数：" label-width="7em" />
      <van-field readonly required name="judicialProcessingCount" :value="fromdata.judicialProcessingCount" label="司法机关处理人数：" label-width="9em" />
    </div>
    <div style="margin-bottom: 50px"></div>
  </div>
</template>
<script>
import { mapGetters } from "vuex"
import {openFileUrl} from "@/store/openFile";

export default {
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['user']),
  },
  props: ['fromdata','todotype','params','showChengban'],
  methods: {
    openFileUrlfun(value) {
      this.$router.push(
          {
            name: 'fileview',
            query: {
              openFileUrl: openFileUrl(value)
            }
          }
      );
    }
  },
}
</script>

<style>
.tables.el-table .cell {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-all;
  line-height: 15px;
  padding-left: 5px;
  padding-right: 5px;
}
</style>